(ns coretest
  (:use clojure.test
	clj.jtacck.core))

(deftest parse-config-test
  (is (empty? (parse-config "")))
  (is (empty? (parse-config "\n")))
  (are [str expected] (= (parse-config str) expected)
       "test=test\ntest2=test two" {:test "test" :test2 "test two"}
       "empty=\nnonempty=e\nempty2=" {:empty "" :nonempty "e" :empty2 ""}
       " db-username = username  
 db-password\t=   \tpassword 
db-address=localhost:5432/tracking_system" {:db-username "username"
					    :db-password "password"
					    :db-address "localhost:5432/tracking_system"}))